Problem Note 41434: The graph on page 12 of the "SAS/GRAPH® 9.2: Graph Template Language Reference, Second Edition" PDF file is incorrect
The graph output on page 12 of the SAS/GRAPH 9.2: Graph Template Language Reference, Second Edition PDF file is incorrect. The graph should contain four legend entries. The incorrect graph can also be found in the Legends section of the HTML version of the documentation.
Click the Full Code tab to see the SAS program that produces this graph.
Click the Results tab to view the correct graph output.
Operating System and Release Information
SAS System | SAS/GRAPH | z/OS | 9.2 TS1M0 | 9.3 TS1M0 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | 9.3 TS1M0 |
Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | 9.3 TS1M0 |
Microsoft® Windows® for x64 | 9.2 TS1M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | 9.3 TS1M0 |
Microsoft Windows XP Professional | 9.2 TS1M0 | 9.3 TS1M0 |
Windows Vista | 9.2 TS1M0 | 9.3 TS1M0 |
Windows Vista for x64 | 9.2 TS1M0 | 9.3 TS1M0 |
64-bit Enabled AIX | 9.2 TS1M0 | 9.3 TS1M0 |
64-bit Enabled HP-UX | 9.2 TS1M0 | 9.3 TS1M0 |
64-bit Enabled Solaris | 9.2 TS1M0 | 9.3 TS1M0 |
HP-UX IPF | 9.2 TS1M0 | 9.3 TS1M0 |
Linux | 9.2 TS1M0 | 9.3 TS1M0 |
Linux for x64 | 9.2 TS1M0 | 9.3 TS1M0 |
OpenVMS on HP Integrity | 9.2 TS1M0 | 9.3 TS1M0 |
Solaris for x64 | 9.2 TS1M0 | 9.3 TS1M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
proc template;
define statgraph scatterfit;
begingraph;
entrytitle "Linear Regression By Gender";
layout overlay;
scatterplot x=height y=weight / group=sex name="scat";
regressionplot x=height y=weight/ group=sex name="reg";
discretelegend "scat" "reg" / border=true;
endlayout;
endgraph;
end;
run;
proc sort data=sashelp.class out=class;
by sex;
run;
ods listing close;
ods html image_dpi=100 file='Legends.html' path='.';
ods graphics / reset noborder width=600px height=400px
imagename="Legends" imagefmt=gif;
proc sgrender data=class template=scatterfit;
run;
ods html close;
ods listing;
The SAS code on pages 11 and 12 of the
SAS/GRAPH 9.2®: Graph Template Language Reference, Second Edition PDF file does not produce the graph shown on page 12 of the documentation.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2010-10-29 10:24:04 |
Date Created: | 2010-10-28 09:05:43 |